package com.example.game_level;


import java.util.Random;

import org.andengine.engine.camera.Camera;
import org.andengine.entity.primitive.Rectangle;

import org.andengine.entity.text.Text;







import android.util.Log;

public class Letter_Blocks{
	public Rectangle sprite;
	public static Letter_Blocks instance;
	Camera mCamera;
	Boolean movable;
	StartActivity activity;
	String lt;
	int code;
	int bcolor;
    
	 
	
	
	int color;
	public static Letter_Blocks getSharedInstance(){
		
		if(instance==null){
			instance = new Letter_Blocks();
		}
		return instance;
	}
	
	public Letter_Blocks(){
		activity = StartActivity.getSharedInstance();
		block_and_color();
	}
	
	public void block_and_color(){
		sprite=new Rectangle(0,0,112,80, StartActivity.getSharedInstance().getVertexBufferObjectManager());
		
		Random r=new Random();
		color=r.nextInt(3);
		switch(color){
		
		case 0: sprite.setColor(0, 0.46875f, 0.78125f);break;
		case 1: sprite.setColor(0.99609375f,0.2578125f,0.2578125f); break;
		case 2: sprite.setColor(0.49609375f, 0.80078125f, 0);break;
		//default: sprite.setColor(0,0,1);
		}
		String ch =getLetter();
		Text letter= new Text(40, 5, activity.mFont, ch, activity.getVertexBufferObjectManager());
		
	//	letter.setPosition(20,0);
		
		sprite.attachChild(letter);
		activity.pos++ ;
		//activity.match_letters.add(key);
		init();
		
		
	}
	
	
	
	
	public void init(){
		//sprite.registerEntityModifier(new LoopEntityModifier(new RotationModifier(5, 0, 360)));
		//sprite.registerEntityModifier(new JumpModifier(1,sprite.getX(),sprite.getX()+70,sprite.getY(),sprite.getX(),0));
		
	}
	
	public void clean() {
		sprite.clearEntityModifiers();
		sprite.clearUpdateHandlers();
	}
	
	public String getLetter(){
		
		Random r=new Random();
		
		switch(activity.level){
		
		case 1: code=r.nextInt(19);break;
		
		case 2: code=r.nextInt(26);break;
		
		case 3: code=r.nextInt(203);break;
		
		case 4: code=r.nextInt(373);break;
	//	case 5: code=r.nextInt(373);break;
		}
		
		switch(code){
		
		case 0: Log.v("level_game", "0");if( activity.key[1]!=1){lt= "\u0915";  activity.key[1]=1; activity.position[0]=activity.pos ;break;}
		case 1: Log.v("level_game", "1");if( activity.key[2]!=2){lt= "\u0916" ; activity.key[2]=2; activity.position[1]=activity.pos;break;}
		case 2: Log.v("level_game", "2");if( activity.key[3]!=3){lt= "\u0917" ; activity.key[3]=3; activity.position[2]=activity.pos;break;}
		case 3: Log.v("level_game", "3");if( activity.key[4]!=4){ lt= "\u0918" ; activity.key[4]=4; activity.position[3]=activity.pos;break;}
		case 4: Log.v("level_game", "4");if( activity.key[5]!=5){lt= "\u0919" ; activity.key[5]=5; activity.position[4]=activity.pos;break;}
		case 5: Log.v("level_game", "5");if( activity.key[6]!=6){lt= "\u091A" ; activity.key[6]=6; activity.position[5]=activity.pos;break;}
		case 6: Log.v("level_game", "6");if( activity.key[7]!=7){lt= "\u091B" ; activity.key[7]=7; activity.position[6]=activity.pos;break;}
		
		
		
		case 7: Log.v("level_game", "7");if( activity.key[8]!=8){lt= "\u091C" ; activity.key[8]=8; activity.position[7]=activity.pos;break;}
		case 8: Log.v("level_game", "8");if( activity.key[9]!=9){lt= "\u091D" ; activity.key[9]=9; activity.position[8]=activity.pos;break;}
		case 9: Log.v("level_game", "9");if( activity.key[10]!=10){lt= "\u091E" ; activity.key[10]=10; activity.position[9]=activity.pos;break;}
		case 10: Log.v("level_game", "10");if( activity.key[11]!=11){ lt= "\u091F"; activity.key[11]=11; activity.position[10]=activity.pos;break;}
		case 11: Log.v("level_game", "11");if( activity.key[12]!=12){lt= "\u0920"; activity.key[12]=12; activity.position[11]=activity.pos;break;}
		case 12: Log.v("level_game", "12");if( activity.key[13]!=13){lt= "\u0921"; activity.key[13]=13; activity.position[12]=activity.pos;break;}
		case 13: Log.v("level_game", "13");if( activity.key[14]!=14){lt= "\u0922"; activity.key[14]=14; activity.position[13]=activity.pos;break;}
		case 14: Log.v("level_game", "14");if( activity.key[15]!=15){lt= "\u0923"; activity.key[15]=15; activity.position[14]=activity.pos;break;}
		case 15: Log.v("level_game", "15");if( activity.key[16]!=16){lt= "\u0924"; activity.key[16]=16; activity.position[15]=activity.pos;break;}
		case 16: Log.v("level_game", "16");if( activity.key[17]!=17){lt= "\u0925"; activity.key[17]=17; activity.position[16]=activity.pos;break;}
		case 17: Log.v("level_game", "17");if( activity.key[18]!=18){lt= "\u0926"; activity.key[18]=18; activity.position[17]=activity.pos;break;}
		case 18: Log.v("level_game", "18");if( activity.key[19]!=19){lt= "\u0927"; activity.key[19]=19; activity.position[18]=activity.pos;break;}
		case 19: Log.v("level_game", "19");if( activity.key[20]!=20){lt= "\u0928"; activity.key[20]=20; activity.position[19]=activity.pos;break;}
		case 20: Log.v("level_game", "20");if( activity.key[21]!=21){lt= "\u092A"; activity.key[21]=21; activity.position[20]=activity.pos;break;}
		case 21: Log.v("level_game", "21");if( activity.key[22]!=22){lt= "\u092B"; activity.key[22]=22; activity.position[21]=activity.pos;break;}
		case 22: Log.v("level_game", "22");if( activity.key[23]!=23){lt= "\u092C"; activity.key[23]=23; activity.position[22]=activity.pos;break;}
		case 23: Log.v("level_game", "23");if( activity.key[24]!=24){lt= "\u092D"; activity.key[24]=24; activity.position[23]=activity.pos;break;}
		case 24: Log.v("level_game", "24");if( activity.key[25]!=25){lt= "\u092E"; activity.key[25]=25; activity.position[24]=activity.pos;break;}
			
		case 25: if( activity.key[26]!=26){lt= "\u092F"; activity.key[26]=26; activity.position[25]=activity.pos ;break;}
		case 26: if( activity.key[27]!=27){lt= "\u0930"; activity.key[27]=27; activity.position[26]=activity.pos ;break;}
		case 27: if( activity.key[28]!=28){lt= "\u0932"; activity.key[28]=28; activity.position[27]=activity.pos ;break;}
		case 28: if( activity.key[29]!=29){lt= "\u0935"; activity.key[29]=29; activity.position[28]=activity.pos ;break;}
		case 29: if( activity.key[30]!=30){lt= "\u0936"; activity.key[30]=30; activity.position[29]=activity.pos ;break;}
		case 30: if( activity.key[31]!=31){lt= "\u0937"; activity.key[31]=31; activity.position[30]=activity.pos ;break;}
		case 31: if( activity.key[32]!=32){lt= "\u0938"; activity.key[32]=32; activity.position[31]=activity.pos ;break;}
		
		case 32: if( activity.key[33]!=33){lt= "\u0939"; activity.key[33]=33; activity.position[32]=activity.pos ;break;}
		case 33: if( activity.key[34]!=34){lt= "\u0933"; activity.key[34]=34; activity.position[33]=activity.pos ;break;}
		
		case 34: if( activity.key[35]!=35){lt= "\u0915\u093E"; activity.key[35]=35; activity.position[34]=activity.pos ;break;}//Ka
		case 35: if( activity.key[36]!=36){lt= "\u093F\u0915"; activity.key[36]=36; activity.position[35]=activity.pos ;break;}//Ki
		case 36: if( activity.key[37]!=37){lt= "\u0915\u0940"; activity.key[37]=37; activity.position[36]=activity.pos ;break;}//Kii
		

		case 37: if( activity.key[40]!=40){lt= "\u0916\u093E"; activity.key[40]=40; activity.position[39]=activity.pos ;break;}//Kha
		case 38: if( activity.key[41]!=41){lt= "\u093F\u0916"; activity.key[41]=41; activity.position[40]=activity.pos ;break;}//Khi
		case 39: if( activity.key[42]!=42){lt= "\u0916\u0940"; activity.key[42]=42; activity.position[41]=activity.pos ;break;}//Khii
		
		
		case 40: if( activity.key[45]!=45){lt= "\u0917\u093E"; activity.key[45]=45; activity.position[44]=activity.pos ;break;}
		case 41: if( activity.key[46]!=46){lt= "\u093F\u0917"; activity.key[46]=46; activity.position[45]=activity.pos ;break;}
		case 42: if( activity.key[47]!=47){lt= "\u0917\u0940"; activity.key[47]=47; activity.position[46]=activity.pos ;break;}
		
		

		case 43: if( activity.key[50]!=50){lt= "\u0918\u093E"; activity.key[50]=50; activity.position[49]=activity.pos ;break;}
		case 44: if( activity.key[51]!=51){lt= "\u093F\u0918"; activity.key[51]=51; activity.position[50]=activity.pos ;break;}
		case 45: if( activity.key[52]!=52){lt= "\u0918\u0940"; activity.key[52]=52; activity.position[51]=activity.pos ;break;}
		
				
		case 46: if( activity.key[55]!=55){lt= "\u0919\u093E"; activity.key[55]=55; activity.position[54]=activity.pos ;break;}
		case 47: if( activity.key[56]!=56){lt= "\u093F\u0919"; activity.key[56]=56; activity.position[55]=activity.pos ;break;}
		case 48: if( activity.key[57]!=57){lt= "\u0919\u0940"; activity.key[57]=57; activity.position[56]=activity.pos ;break;}
		
		/*--------------------------------------------------------------------------------------------------------------------------------------*/
		//ROW 2
		case 49: if( activity.key[60]!=60){lt= "\u091A\u093E"; activity.key[60]=60; activity.position[59]=activity.pos ;break;}
		case 50: if( activity.key[61]!=61){lt= "\u093F\u091A"; activity.key[61]=61; activity.position[60]=activity.pos ;break;}
		case 51: if( activity.key[62]!=62){lt= "\u091A\u0940"; activity.key[62]=62; activity.position[61]=activity.pos ;break;}
		
		case 52: if( activity.key[65]!=65){lt= "\u091B\u093E"; activity.key[65]=65; activity.position[64]=activity.pos ;break;}
		case 53: if( activity.key[66]!=66){lt= "\u093F\u091B"; activity.key[66]=66; activity.position[65]=activity.pos ;break;}
		case 54: if( activity.key[67]!=67){lt= "\u091B\u0940"; activity.key[67]=67; activity.position[66]=activity.pos ;break;}
		
		
		case 55: if( activity.key[70]!=70){lt= "\u091C\u093E"; activity.key[70]=70; activity.position[69]=activity.pos ;break;}
		case 56: if( activity.key[71]!=71){lt= "\u093F\u091C"; activity.key[71]=71; activity.position[70]=activity.pos ;break;}
		case 57: if( activity.key[72]!=72){lt= "\u091C\u0940"; activity.key[72]=72; activity.position[71]=activity.pos ;break;}
		
				
		case 58: if( activity.key[75]!=75){lt= "\u091D\u093E"; activity.key[75]=75; activity.position[74]=activity.pos ;break;}
		case 59: if( activity.key[76]!=76){lt= "\u093F\u091D"; activity.key[76]=76; activity.position[75]=activity.pos ;break;}
		case 60: if( activity.key[77]!=77){lt= "\u091D\u0940"; activity.key[77]=77; activity.position[76]=activity.pos ;break;}
		
		
		case 61: if( activity.key[80]!=80){lt= "\u091E\u093E"; activity.key[80]=80; activity.position[79]=activity.pos ;break;}
		case 62: if( activity.key[81]!=81){lt= "\u093F\u091E"; activity.key[81]=81; activity.position[80]=activity.pos ;break;}
		case 63: if( activity.key[82]!=82){lt= "\u091E\u0940"; activity.key[82]=82; activity.position[81]=activity.pos ;break;}
		
				
		/*--------------------------------------------------------------------------------------------------------------------------------------*/
		//ROW 3
		
		case 64: if( activity.key[85]!=85){lt= "\u091F\u093E"; activity.key[85]=85; activity.position[84]=activity.pos ;break;}
		case 65: if( activity.key[86]!=86){lt= "\u093F\u091F"; activity.key[86]=86; activity.position[85]=activity.pos ;break;}
		case 66: if( activity.key[87]!=87){lt= "\u091F\u0940"; activity.key[87]=87; activity.position[86]=activity.pos ;break;}
		
		case 67: if( activity.key[90]!=90){lt= "\u0920\u093E"; activity.key[90]=90; activity.position[89]=activity.pos ;break;}
		case 68: if( activity.key[91]!=91){lt= "\u093F\u0920"; activity.key[91]=91; activity.position[90]=activity.pos ;break;}
		case 69: if( activity.key[92]!=92){lt= "\u0920\u0940"; activity.key[92]=92; activity.position[91]=activity.pos ;break;}
		
		
		case 70: if( activity.key[95]!=95){lt= "\u0921\u093E"; activity.key[95]=95; activity.position[94]=activity.pos ;break;}
		case 71: if( activity.key[96]!=96){lt= "\u093F\u0921"; activity.key[96]=96; activity.position[95]=activity.pos ;break;}
		case 72: if( activity.key[97]!=97){lt= "\u0921\u0940"; activity.key[97]=97; activity.position[96]=activity.pos ;break;}
		
		
		case 73: if( activity.key[100]!=100){lt= "\u0922\u093E"; activity.key[100]=100; activity.position[99]=activity.pos ;break;}
		case 74: if( activity.key[101]!=101){lt= "\u093F\u0922"; activity.key[101]=101; activity.position[100]=activity.pos ;break;}
		case 75: if( activity.key[102]!=102){lt= "\u0922\u0940"; activity.key[102]=102; activity.position[101]=activity.pos ;break;}
		
		
		
		case 76: if( activity.key[105]!=105){lt= "\u0923\u093E"; activity.key[105]=105; activity.position[104]=activity.pos ;break;}
		case 77: if( activity.key[106]!=106){lt= "\u093F\u0923"; activity.key[106]=106; activity.position[105]=activity.pos ;break;}
		case 78: if( activity.key[107]!=107){lt= "\u0923\u0940"; activity.key[107]=107; activity.position[106]=activity.pos ;break;}

		
/*--------------------------------------------------------------------------------------------------------------------------------------*/
		//ROW 4
		
		case 79: if( activity.key[110]!=110){lt= "\u0924\u093E"; activity.key[110]=110; activity.position[109]=activity.pos ;break;}
		case 80: if( activity.key[111]!=111){lt= "\u093F\u0924"; activity.key[111]=111; activity.position[110]=activity.pos ;break;}
		case 81: if( activity.key[112]!=112){lt= "\u0924\u0940"; activity.key[112]=112; activity.position[111]=activity.pos ;break;}
		
		case 82: if( activity.key[115]!=115){lt= "\u0925\u093E"; activity.key[115]=115; activity.position[114]=activity.pos ;break;}
		case 83: if( activity.key[116]!=116){lt= "\u093F\u0925"; activity.key[116]=116; activity.position[115]=activity.pos ;break;}
		case 84: if( activity.key[117]!=117){lt= "\u0925\u0940"; activity.key[117]=117; activity.position[116]=activity.pos ;break;}
		
		
		case 85: if( activity.key[120]!=120){lt= "\u0926\u093E"; activity.key[120]=120; activity.position[119]=activity.pos ;break;}
		case 86: if( activity.key[121]!=121){lt= "\u093F\u0926"; activity.key[121]=121; activity.position[120]=activity.pos ;break;}
		case 87: if( activity.key[122]!=122){lt= "\u0926\u0940"; activity.key[122]=122; activity.position[121]=activity.pos ;break;}
		
		
		case 88: if( activity.key[125]!=125){lt= "\u0927\u093E"; activity.key[125]=125; activity.position[124]=activity.pos ;break;}
		case 89: if( activity.key[126]!=126){lt= "\u093F\u0927"; activity.key[126]=126; activity.position[125]=activity.pos ;break;}
		case 90: if( activity.key[127]!=127){lt= "\u0927\u0940"; activity.key[127]=127; activity.position[126]=activity.pos ;break;}
		
		
		case 91: if( activity.key[130]!=130){lt= "\u0928\u093E"; activity.key[130]=130; activity.position[129]=activity.pos ;break;}
		case 92: if( activity.key[131]!=131){lt= "\u093F\u0928"; activity.key[131]=131; activity.position[130]=activity.pos ;break;}
		case 93: if( activity.key[132]!=132){lt= "\u0928\u0940"; activity.key[132]=132; activity.position[131]=activity.pos ;break;}
		
				
/*--------------------------------------------------------------------------------------------------------------------------------------*/
		//ROW 5
		
		case 94: if( activity.key[135]!=135){lt= "\u092A\u093E"; activity.key[135]=135; activity.position[134]=activity.pos ;break;}
		case 95: if( activity.key[136]!=136){lt= "\u093F\u092A"; activity.key[136]=136; activity.position[135]=activity.pos ;break;}
		case 96: if( activity.key[137]!=137){lt= "\u092A\u0940"; activity.key[137]=137; activity.position[136]=activity.pos ;break;}
		
		case 97: if( activity.key[140]!=140){lt= "\u092B\u093E"; activity.key[140]=140; activity.position[139]=activity.pos ;break;}
		case 98: if( activity.key[141]!=141){lt= "\u093F\u092B"; activity.key[141]=141; activity.position[140]=activity.pos ;break;}
		case 99: if( activity.key[142]!=142){lt= "\u092B\u0940"; activity.key[142]=142; activity.position[141]=activity.pos ;break;}
		
				
		case 100: if( activity.key[145]!=145){lt= "\u092C\u093E"; activity.key[145]=145; activity.position[144]=activity.pos ;break;}
		case 101: if( activity.key[146]!=146){lt= "\u093F\u092C"; activity.key[146]=146; activity.position[145]=activity.pos ;break;}
		case 102: if( activity.key[147]!=147){lt= "\u092C\u0940"; activity.key[147]=147; activity.position[146]=activity.pos ;break;}
		
		
		case 103: if( activity.key[150]!=150){lt= "\u092D\u093E"; activity.key[150]=150; activity.position[149]=activity.pos ;break;}
		case 104: if( activity.key[151]!=151){lt= "\u093F\u092D"; activity.key[151]=151; activity.position[150]=activity.pos ;break;}
		case 105: if( activity.key[152]!=152){lt= "\u092D\u0940"; activity.key[152]=152; activity.position[151]=activity.pos ;break;}
		
				
		case 106: if( activity.key[155]!=155){lt= "\u092E\u093E"; activity.key[155]=155; activity.position[154]=activity.pos ;break;}
		case 107: if( activity.key[156]!=156){lt= "\u093F\u092E"; activity.key[156]=156; activity.position[155]=activity.pos ;break;}
		case 108: if( activity.key[157]!=157){lt= "\u092E\u0940"; activity.key[157]=157; activity.position[156]=activity.pos ;break;}
		
			
/*--------------------------------------------------------------------------------------------------------------------------------------*/
		//ROW 6

		case 109: if( activity.key[160]!=160){lt= "\u092F\u093E"; activity.key[160]=160; activity.position[159]=activity.pos ;break;}
		case 110: if( activity.key[161]!=161){lt= "\u093F\u092F"; activity.key[161]=161; activity.position[160]=activity.pos ;break;}
		case 111: if( activity.key[162]!=162){lt= "\u092F\u0940"; activity.key[162]=162; activity.position[161]=activity.pos ;break;}
		
		case 112: if( activity.key[165]!=165){lt= "\u0930\u093E"; activity.key[165]=165; activity.position[164]=activity.pos ;break;}
		case 113: if( activity.key[166]!=166){lt= "\u093F\u0930"; activity.key[166]=166; activity.position[165]=activity.pos ;break;}
		case 114: if( activity.key[167]!=167){lt= "\u0930\u0940"; activity.key[167]=167; activity.position[166]=activity.pos ;break;}
		
		
		case 115: if( activity.key[170]!=170){lt= "\u0932\u093E"; activity.key[170]=170; activity.position[169]=activity.pos ;break;}
		case 116: if( activity.key[171]!=171){lt= "\u093F\u0932"; activity.key[171]=171; activity.position[170]=activity.pos ;break;}
		case 117: if( activity.key[172]!=172){lt= "\u0932\u0940"; activity.key[172]=172; activity.position[171]=activity.pos ;break;}
		
			
		case 118: if( activity.key[175]!=175){lt= "\u0935\u093E"; activity.key[175]=175; activity.position[174]=activity.pos ;break;}
		case 119: if( activity.key[176]!=176){lt= "\u093F\u0935"; activity.key[176]=176; activity.position[175]=activity.pos ;break;}
		case 120: if( activity.key[177]!=177){lt= "\u0935\u0940"; activity.key[177]=177; activity.position[176]=activity.pos ;break;}
		
			
		case 121: if( activity.key[180]!=180){lt= "\u0936\u093E"; activity.key[180]=180; activity.position[179]=activity.pos ;break;}
		case 122: if( activity.key[181]!=181){lt= "\u093F\u0936"; activity.key[181]=181; activity.position[180]=activity.pos ;break;}
		case 123: if( activity.key[182]!=182){lt= "\u0936\u0940"; activity.key[182]=182; activity.position[181]=activity.pos ;break;}
		
				
/*--------------------------------------------------------------------------------------------------------------------------------------*/
		//ROW 7
		
		case 124: if( activity.key[185]!=185){lt= "\u0937\u093E"; activity.key[185]=185; activity.position[184]=activity.pos ;break;}
		case 125: if( activity.key[186]!=186){lt= "\u093F\u0937"; activity.key[186]=186; activity.position[185]=activity.pos ;break;}
		case 126: if( activity.key[187]!=187){lt= "\u0937\u0940"; activity.key[187]=187; activity.position[186]=activity.pos ;break;}
		
		case 127: if( activity.key[190]!=190){lt= "\u0938\u093E"; activity.key[190]=190; activity.position[189]=activity.pos ;break;}
		case 128: if( activity.key[191]!=191){lt= "\u093F\u0938"; activity.key[191]=191; activity.position[190]=activity.pos ;break;}
		case 129: if( activity.key[192]!=192){lt= "\u0938\u0940"; activity.key[192]=192; activity.position[191]=activity.pos ;break;}
		
			
		case 130: if( activity.key[195]!=195){lt= "\u0939\u093E"; activity.key[195]=195; activity.position[194]=activity.pos ;break;}
		case 131: if( activity.key[196]!=196){lt= "\u093F\u0939"; activity.key[196]=196; activity.position[195]=activity.pos ;break;}
		case 132: if( activity.key[197]!=197){lt= "\u0939\u0940"; activity.key[197]=197; activity.position[196]=activity.pos ;break;}
		
			
		case 133: if( activity.key[200]!=200){lt= "\u0933\u093E"; activity.key[200]=200; activity.position[199]=activity.pos ;break;}
		case 134: if( activity.key[201]!=201){lt= "\u093F\u0933"; activity.key[201]=201; activity.position[200]=activity.pos ;break;}
		case 135: if( activity.key[202]!=202){lt= "\u0933\u0940"; activity.key[202]=202; activity.position[201]=activity.pos ;break;}
		
				
/*----------------------------------------------------------------------------------------------------------------------------------------------*/
		
		
	//}
	
	
		
		
		
		
		
		case 136: if( activity.key[206]!=206){lt= "\u0915\u0942"; activity.key[206]=206; activity.position[205]=activity.pos ;break;}//uu
		case 137: if( activity.key[207]!=207){lt= "\u0915\u0941"; activity.key[207]=207; activity.position[206]=activity.pos ;break;}//u
		
		
		case 138: if( activity.key[211]!=211){lt= "\u0916\u0942"; activity.key[211]=211; activity.position[210]=activity.pos ;break;}
		case 139: if( activity.key[212]!=212){lt= "\u0916\u0941"; activity.key[212]=212; activity.position[211]=activity.pos ;break;}
		
		
		case 140: if( activity.key[216]!=216){lt= "\u0917\u0942"; activity.key[216]=216; activity.position[215]=activity.pos ;break;}
		case 141: if( activity.key[217]!=217){lt= "\u0917\u0941"; activity.key[217]=217; activity.position[216]=activity.pos ;break;}
		
	
		case 142: if( activity.key[221]!=221){lt= "\u0918\u0942"; activity.key[221]=221; activity.position[220]=activity.pos ;break;}
		case 143: if( activity.key[222]!=222){lt= "\u0918\u0941"; activity.key[222]=222; activity.position[221]=activity.pos ;break;}
		
		
		case 144: if( activity.key[226]!=226){lt= "\u0919\u0942"; activity.key[226]=226; activity.position[225]=activity.pos ;break;}
		case 145: if( activity.key[227]!=227){lt= "\u0919\u0941"; activity.key[227]=227; activity.position[226]=activity.pos ;break;}
		
		
		case 146: if( activity.key[231]!=231){lt= "\u091A\u0942"; activity.key[231]=231; activity.position[230]=activity.pos ;break;}
		case 147: if( activity.key[232]!=232){lt= "\u091A\u0941"; activity.key[232]=232; activity.position[231]=activity.pos ;break;}
		

		
		case 148: if( activity.key[236]!=236){lt= "\u091B\u0942"; activity.key[236]=236; activity.position[235]=activity.pos ;break;}
		case 149: if( activity.key[237]!=237){lt= "\u091B\u0941"; activity.key[237]=237; activity.position[236]=activity.pos ;break;}
		
		
		case 150: if( activity.key[241]!=241){lt= "\u091C\u0942"; activity.key[241]=241; activity.position[240]=activity.pos ;break;}
		case 151: if( activity.key[242]!=242){lt= "\u091C\u0941"; activity.key[242]=242; activity.position[241]=activity.pos ;break;}
		
		
		case 152: if( activity.key[246]!=246){lt= "\u091D\u0942"; activity.key[246]=246; activity.position[245]=activity.pos ;break;}
		case 153: if( activity.key[247]!=247){lt= "\u091D\u0941"; activity.key[247]=247; activity.position[246]=activity.pos ;break;}
		
		
		case 154: if( activity.key[251]!=251){lt= "\u091E\u0942"; activity.key[251]=251; activity.position[250]=activity.pos ;break;}
		case 155: if( activity.key[252]!=252){lt= "\u091E\u0941"; activity.key[252]=252; activity.position[251]=activity.pos ;break;}
		
		
		case 156: if( activity.key[256]!=256){lt= "\u091F\u0942"; activity.key[256]=256; activity.position[255]=activity.pos ;break;}
		case 157: if( activity.key[257]!=257){lt= "\u091F\u0941"; activity.key[257]=257; activity.position[256]=activity.pos ;break;}
	
		
		case 158: if( activity.key[261]!=261){lt= "\u0920\u0942"; activity.key[261]=261; activity.position[260]=activity.pos ;break;}
		case 159: if( activity.key[262]!=262){lt= "\u0920\u0941"; activity.key[262]=262; activity.position[261]=activity.pos ;break;}
	
		
		case 160: if( activity.key[266]!=266){lt= "\u0921\u0942"; activity.key[266]=266; activity.position[265]=activity.pos ;break;}
		case 161: if( activity.key[267]!=267){lt= "\u0921\u0941"; activity.key[267]=267; activity.position[266]=activity.pos ;break;}
	
		
		case 162: if( activity.key[271]!=271){lt= "\u0922\u0942"; activity.key[271]=271; activity.position[270]=activity.pos ;break;}
		case 163: if( activity.key[272]!=272){lt= "\u0922\u0941"; activity.key[272]=272; activity.position[271]=activity.pos ;break;}
		
		
		
		case 164: if( activity.key[276]!=276){lt= "\u0923\u0942"; activity.key[276]=276; activity.position[275]=activity.pos ;break;}
		case 165: if( activity.key[277]!=277){lt= "\u0923\u0941"; activity.key[277]=277; activity.position[276]=activity.pos ;break;}
		
		
		case 166: if( activity.key[281]!=281){lt= "\u0924\u0942"; activity.key[281]=281; activity.position[280]=activity.pos ;break;}
		case 167: if( activity.key[282]!=282){lt= "\u0924\u0941"; activity.key[282]=282; activity.position[281]=activity.pos ;break;}
		
	
	
		case 168: if( activity.key[286]!=286){lt= "\u0925\u0942"; activity.key[286]=286; activity.position[285]=activity.pos ;break;}
		case 169: if( activity.key[287]!=287){lt= "\u0925\u0941"; activity.key[287]=287; activity.position[286]=activity.pos ;break;}
	
		
		case 170: if( activity.key[291]!=291){lt= "\u0926\u0942"; activity.key[291]=291; activity.position[290]=activity.pos ;break;}
		case 171: if( activity.key[292]!=292){lt= "\u0926\u0941"; activity.key[292]=292; activity.position[291]=activity.pos ;break;}
		
		case 172: if( activity.key[296]!=296){lt= "\u0927\u0942"; activity.key[296]=296; activity.position[295]=activity.pos ;break;}
		case 173: if( activity.key[297]!=297){lt= "\u0927\u0941"; activity.key[297]=297; activity.position[296]=activity.pos ;break;}
	
		
		case 174: if( activity.key[301]!=301){lt= "\u0928\u0942"; activity.key[301]=301; activity.position[300]=activity.pos ;break;}
		case 175: if( activity.key[302]!=302){lt= "\u0928\u0941"; activity.key[302]=302; activity.position[301]=activity.pos ;break;}

		
		case 176: if( activity.key[306]!=306){lt= "\u092A\u0942"; activity.key[306]=306; activity.position[305]=activity.pos ;break;}
		case 177: if( activity.key[307]!=307){lt= "\u092A\u0941"; activity.key[307]=307; activity.position[306]=activity.pos ;break;}
		
		
		case 178: if( activity.key[311]!=311){lt= "\u092B\u0942"; activity.key[311]=311; activity.position[310]=activity.pos ;break;}
		case 179: if( activity.key[312]!=312){lt= "\u092B\u0941"; activity.key[312]=312; activity.position[311]=activity.pos ;break;}
		
		
		case 180: if( activity.key[316]!=316){lt= "\u092C\u0942"; activity.key[316]=316; activity.position[315]=activity.pos ;break;}
		case 181: if( activity.key[317]!=317){lt= "\u092C\u0941"; activity.key[317]=317; activity.position[316]=activity.pos ;break;}
		
		
		case 182: if( activity.key[321]!=321){lt= "\u092D\u0942"; activity.key[321]=321; activity.position[320]=activity.pos ;break;}
		case 183: if( activity.key[322]!=322){lt= "\u092D\u0941"; activity.key[322]=322; activity.position[321]=activity.pos ;break;}
		
		
		case 184: if( activity.key[326]!=326){lt= "\u092E\u0942"; activity.key[326]=326; activity.position[325]=activity.pos ;break;}
		case 185: if( activity.key[327]!=327){lt= "\u092E\u0941"; activity.key[327]=327; activity.position[326]=activity.pos ;break;}
		
		
		case 186: if( activity.key[331]!=331){lt= "\u092F\u0942"; activity.key[331]=331; activity.position[330]=activity.pos ;break;}
		case 187: if( activity.key[332]!=332){lt= "\u092F\u0941"; activity.key[332]=332; activity.position[331]=activity.pos ;break;}
		
		
		case 188: if( activity.key[336]!=336){lt= "\u0930\u0942"; activity.key[336]=336; activity.position[335]=activity.pos ;break;}
		case 189: if( activity.key[337]!=337){lt= "\u0930\u0941"; activity.key[337]=337; activity.position[336]=activity.pos ;break;}
	
		
		case 190: if( activity.key[341]!=341){lt= "\u0932\u0942"; activity.key[341]=341; activity.position[340]=activity.pos ;break;}
		case 191: if( activity.key[342]!=342){lt= "\u0932\u0941"; activity.key[342]=342; activity.position[341]=activity.pos ;break;}
		
		
		case 192: if( activity.key[346]!=346){lt= "\u0935\u0942"; activity.key[346]=346; activity.position[345]=activity.pos ;break;}
		case 193: if( activity.key[347]!=347){lt= "\u0935\u0941"; activity.key[347]=347; activity.position[346]=activity.pos ;break;}
		
		
		case 194: if( activity.key[351]!=351){lt= "\u0936\u0942"; activity.key[351]=351; activity.position[350]=activity.pos ;break;}
		case 195: if( activity.key[352]!=352){lt= "\u0936\u0941"; activity.key[352]=352; activity.position[351]=activity.pos ;break;}
		
		
		case 196: if( activity.key[356]!=356){lt= "\u0937\u0942"; activity.key[356]=356; activity.position[355]=activity.pos ;break;}
		case 197: if( activity.key[357]!=357){lt= "\u0937\u0941"; activity.key[357]=357; activity.position[356]=activity.pos ;break;}

		
		case 198: if( activity.key[361]!=361){lt= "\u0938\u0942"; activity.key[361]=361; activity.position[360]=activity.pos ;break;}
		case 199: if( activity.key[362]!=362){lt= "\u0938\u0941"; activity.key[362]=362; activity.position[361]=activity.pos ;break;}

		
		case 200: if( activity.key[366]!=366){lt= "\u0939\u0942"; activity.key[366]=366; activity.position[365]=activity.pos ;break;}
		case 201: if( activity.key[367]!=367){lt= "\u0939\u0941"; activity.key[367]=367; activity.position[366]=activity.pos ;break;}
		
		
		case 202: if( activity.key[371]!=371){lt= "\u0933\u0942"; activity.key[371]=371; activity.position[370]=activity.pos ;break;}
		case 203: if( activity.key[372]!=372){lt= "\u0933\u0941"; activity.key[372]=372; activity.position[371]=activity.pos ;break;}

		
		
		
		
/*---------------------------------------------------------------------------------------------------------------------------------------------*/		
		case 204: if( activity.key[208]!=208){lt= "\u0915\u094C"; activity.key[208]=208; activity.position[207]=activity.pos ;break;}//awe
		case 205: if( activity.key[209]!=209){lt= "\u0915\u094B"; activity.key[209]=209; activity.position[208]=activity.pos ;break;}//o
	
		case 206: if( activity.key[213]!=213){lt= "\u0916\u094C"; activity.key[213]=213; activity.position[212]=activity.pos ;break;}
		case 207: if( activity.key[214]!=214){lt= "\u0916\u094B"; activity.key[214]=214; activity.position[213]=activity.pos ;break;}
		
		case 208: if( activity.key[218]!=218){lt= "\u0917\u094C"; activity.key[218]=218; activity.position[217]=activity.pos ;break;}
		case 209: if( activity.key[219]!=219){lt= "\u0917\u094B"; activity.key[219]=219; activity.position[218]=activity.pos ;break;}
	
		case 210: if( activity.key[223]!=223){lt= "\u0918\u094C"; activity.key[223]=223; activity.position[222]=activity.pos ;break;}
		case 211: if( activity.key[224]!=224){lt= "\u0918\u094B"; activity.key[224]=224; activity.position[223]=activity.pos ;break;}
	
		case 212: if( activity.key[228]!=228){lt= "\u0919\u094C"; activity.key[228]=228; activity.position[227]=activity.pos ;break;}
		case 213: if( activity.key[229]!=229){lt= "\u0919\u094B"; activity.key[229]=229; activity.position[228]=activity.pos ;break;}
	
		case 214: if( activity.key[233]!=233){lt= "\u091A\u094C"; activity.key[233]=233; activity.position[232]=activity.pos ;break;}
		case 215: if( activity.key[234]!=234){lt= "\u091A\u094B"; activity.key[234]=234; activity.position[233]=activity.pos ;break;}
	
		case 216: if( activity.key[238]!=238){lt= "\u091B\u094C"; activity.key[238]=238; activity.position[237]=activity.pos ;break;}
		case 217: if( activity.key[239]!=239){lt= "\u091B\u094B"; activity.key[239]=239; activity.position[238]=activity.pos ;break;}
	
		case 218: if( activity.key[243]!=243){lt= "\u091C\u094C"; activity.key[243]=243; activity.position[242]=activity.pos ;break;}
		case 219: if( activity.key[244]!=244){lt= "\u091C\u094B"; activity.key[244]=244; activity.position[243]=activity.pos ;break;}

		case 220: if( activity.key[248]!=248){lt= "\u091D\u094C"; activity.key[248]=248; activity.position[247]=activity.pos ;break;}
		case 221: if( activity.key[249]!=249){lt= "\u091D\u094B"; activity.key[249]=249; activity.position[248]=activity.pos ;break;}
	
		case 222: if( activity.key[253]!=253){lt= "\u091E\u094C"; activity.key[253]=253; activity.position[252]=activity.pos ;break;}
		case 223: if( activity.key[254]!=254){lt= "\u091E\u094B"; activity.key[254]=254; activity.position[253]=activity.pos ;break;}
	
		case 224: if( activity.key[258]!=258){lt= "\u091F\u094C"; activity.key[258]=258; activity.position[257]=activity.pos ;break;}
		case 225: if( activity.key[259]!=259){lt= "\u091F\u094B"; activity.key[259]=259; activity.position[258]=activity.pos ;break;}
	
		case 226: if( activity.key[263]!=263){lt= "\u0920\u094C"; activity.key[263]=263; activity.position[262]=activity.pos ;break;}
		case 227: if( activity.key[264]!=264){lt= "\u0920\u094B"; activity.key[264]=264; activity.position[263]=activity.pos ;break;}
	
		case 228: if( activity.key[268]!=268){lt= "\u0921\u094C"; activity.key[268]=268; activity.position[267]=activity.pos ;break;}
		case 229: if( activity.key[269]!=269){lt= "\u0921\u094B"; activity.key[269]=269; activity.position[268]=activity.pos ;break;}
	
		case 230: if( activity.key[273]!=273){lt= "\u0922\u094C"; activity.key[273]=273; activity.position[272]=activity.pos ;break;}
		case 231: if( activity.key[274]!=274){lt= "\u0922\u094B"; activity.key[274]=274; activity.position[273]=activity.pos ;break;}
	
		case 232: if( activity.key[278]!=278){lt= "\u0923\u094C"; activity.key[278]=278; activity.position[277]=activity.pos ;break;}
		case 233: if( activity.key[279]!=279){lt= "\u0923\u094B"; activity.key[279]=279; activity.position[278]=activity.pos ;break;}
	
		case 234: if( activity.key[283]!=283){lt= "\u0924\u094C"; activity.key[283]=283; activity.position[282]=activity.pos ;break;}
		case 235: if( activity.key[284]!=284){lt= "\u0924\u094B"; activity.key[284]=284; activity.position[283]=activity.pos ;break;}
	
		case 236: if( activity.key[288]!=288){lt= "\u0925\u094C"; activity.key[288]=288; activity.position[287]=activity.pos ;break;}
		case 237: if( activity.key[289]!=289){lt= "\u0925\u094B"; activity.key[289]=289; activity.position[288]=activity.pos ;break;}
	
		case 238: if( activity.key[293]!=293){lt= "\u0926\u094C"; activity.key[293]=293; activity.position[292]=activity.pos ;break;}
		case 239: if( activity.key[294]!=294){lt= "\u0926\u094B"; activity.key[294]=294; activity.position[293]=activity.pos ;break;}

		case 240: if( activity.key[298]!=298){lt= "\u0927\u094C"; activity.key[298]=298; activity.position[297]=activity.pos ;break;}
		case 241: if( activity.key[299]!=299){lt= "\u0927\u094B"; activity.key[299]=299; activity.position[298]=activity.pos ;break;}
	
		case 242: if( activity.key[303]!=303){lt= "\u0928\u094C"; activity.key[303]=303; activity.position[302]=activity.pos ;break;}
		case 243: if( activity.key[304]!=304){lt= "\u0928\u094B"; activity.key[304]=304; activity.position[303]=activity.pos ;break;}
	
		case 244: if( activity.key[308]!=308){lt= "\u092A\u094C"; activity.key[308]=308; activity.position[307]=activity.pos ;break;}
		case 245: if( activity.key[309]!=309){lt= "\u092A\u094B"; activity.key[309]=309; activity.position[308]=activity.pos ;break;}
	
		case 246: if( activity.key[313]!=313){lt= "\u092B\u094C"; activity.key[313]=313; activity.position[312]=activity.pos ;break;}
		case 247: if( activity.key[314]!=314){lt= "\u092B\u094B"; activity.key[314]=314; activity.position[313]=activity.pos ;break;}
	
		case 248: if( activity.key[318]!=318){lt= "\u092C\u094C"; activity.key[318]=318; activity.position[317]=activity.pos ;break;}
		case 249: if( activity.key[319]!=319){lt= "\u092C\u094B"; activity.key[319]=319; activity.position[318]=activity.pos ;break;}
	
		case 250: if( activity.key[323]!=323){lt= "\u092D\u094C"; activity.key[323]=323; activity.position[322]=activity.pos ;break;}
		case 251: if( activity.key[324]!=324){lt= "\u092D\u094B"; activity.key[324]=324; activity.position[323]=activity.pos ;break;}
	
		case 252: if( activity.key[328]!=328){lt= "\u092E\u094C"; activity.key[328]=328; activity.position[327]=activity.pos ;break;}
		case 253: if( activity.key[329]!=329){lt= "\u092E\u094B"; activity.key[329]=329; activity.position[328]=activity.pos ;break;}
   
		case 254: if( activity.key[333]!=333){lt= "\u092F\u094C"; activity.key[333]=333; activity.position[332]=activity.pos ;break;}
		case 255: if( activity.key[334]!=334){lt= "\u092F\u094B"; activity.key[334]=334; activity.position[333]=activity.pos ;break;}
   
		case 256: if( activity.key[338]!=338){lt= "\u0930\u094C"; activity.key[338]=338; activity.position[337]=activity.pos ;break;}
		case 257: if( activity.key[339]!=339){lt= "\u0930\u094B"; activity.key[339]=339; activity.position[338]=activity.pos ;break;}

		case 258: if( activity.key[343]!=343){lt= "\u0932\u094C"; activity.key[343]=343; activity.position[342]=activity.pos ;break;}
		case 259: if( activity.key[344]!=344){lt= "\u0932\u094B"; activity.key[344]=344; activity.position[343]=activity.pos ;break;}

		case 260: if( activity.key[348]!=348){lt= "\u0935\u094C"; activity.key[348]=348; activity.position[347]=activity.pos ;break;}
		case 261: if( activity.key[349]!=349){lt= "\u0935\u094B"; activity.key[349]=349; activity.position[348]=activity.pos ;break;}

		case 262: if( activity.key[353]!=353){lt= "\u0936\u094C"; activity.key[353]=353; activity.position[352]=activity.pos ;break;}
		case 263: if( activity.key[354]!=354){lt= "\u0936\u094B"; activity.key[354]=354; activity.position[353]=activity.pos ;break;}

		case 264: if( activity.key[358]!=358){lt= "\u0937\u094C"; activity.key[358]=358; activity.position[357]=activity.pos ;break;}
		case 265: if( activity.key[359]!=359){lt= "\u0937\u094B"; activity.key[359]=359; activity.position[358]=activity.pos ;break;}

		case 266: if( activity.key[363]!=363){lt= "\u0938\u094C"; activity.key[363]=363; activity.position[362]=activity.pos ;break;}
		case 267: if( activity.key[364]!=364){lt= "\u0938\u094B"; activity.key[364]=364; activity.position[363]=activity.pos ;break;}

		case 268: if( activity.key[368]!=368){lt= "\u0939\u094C"; activity.key[368]=368; activity.position[367]=activity.pos ;break;}
		case 269: if( activity.key[369]!=369){lt= "\u0939\u094B"; activity.key[369]=369; activity.position[368]=activity.pos ;break;}

		case 270: if( activity.key[373]!=373){lt= "\u0933\u094C"; activity.key[373]=373; activity.position[372]=activity.pos ;break;}
		case 271: if( activity.key[374]!=374){lt= "\u0933\u094B"; activity.key[374]=374; activity.position[373]=activity.pos ;break;}
/*---------------------------------------------------------------------------------------------------------------------------------------------------------------*/
		case 272: if( activity.key[38]!=38){lt= "\u0915\u0947"; activity.key[38]=38; activity.position[37]=activity.pos ;break;}//Ke
		case 273: if( activity.key[39]!=39){lt= "\u0915\u0948"; activity.key[39]=39; activity.position[38]=activity.pos ;break;}//Kay
		
		case 274: if( activity.key[43]!=43){lt= "\u0916\u0947"; activity.key[43]=43; activity.position[42]=activity.pos ;break;}//Khe
		case 275: if( activity.key[44]!=44){lt= "\u0916\u0948"; activity.key[44]=44; activity.position[43]=activity.pos ;break;}//Khay
		
		case 276: if( activity.key[48]!=48){lt= "\u0917\u0947"; activity.key[48]=48; activity.position[47]=activity.pos ;break;}
		case 277: if( activity.key[49]!=49){lt= "\u0917\u0948"; activity.key[49]=49; activity.position[48]=activity.pos ;break;}

		case 278: if( activity.key[53]!=53){lt= "\u0918\u0947"; activity.key[53]=53; activity.position[52]=activity.pos ;break;}
		case 279: if( activity.key[54]!=54){lt= "\u0918\u0948"; activity.key[54]=54; activity.position[53]=activity.pos ;break;}

		case 280: if( activity.key[58]!=58){lt= "\u0919\u0947"; activity.key[58]=58; activity.position[57]=activity.pos ;break;}
		case 281: if( activity.key[59]!=59){lt= "\u0919\u0948"; activity.key[59]=59; activity.position[58]=activity.pos ;break;}

		
		
		case 282: if( activity.key[63]!=63){lt= "\u091A\u0947"; activity.key[63]=63; activity.position[62]=activity.pos ;break;}
		case 283: if( activity.key[64]!=64){lt= "\u091A\u0948"; activity.key[64]=64; activity.position[63]=activity.pos ;break;}
		
		case 284: if( activity.key[68]!=68){lt= "\u091B\u0947"; activity.key[68]=68; activity.position[67]=activity.pos ;break;}
		case 285: if( activity.key[69]!=69){lt= "\u091B\u0948"; activity.key[69]=69; activity.position[68]=activity.pos ;break;}

		case 286: if( activity.key[73]!=73){lt= "\u091C\u0947"; activity.key[73]=73; activity.position[72]=activity.pos ;break;}
		case 287: if( activity.key[74]!=74){lt= "\u091C\u0948"; activity.key[74]=74; activity.position[73]=activity.pos ;break;}

		case 288: if( activity.key[78]!=78){lt= "\u091D\u0947"; activity.key[78]=78; activity.position[77]=activity.pos ;break;}
		case 289: if( activity.key[79]!=79){lt= "\u091D\u0948"; activity.key[79]=79; activity.position[78]=activity.pos ;break;}

		case 290: if( activity.key[83]!=83){lt= "\u091E\u0947"; activity.key[83]=83; activity.position[82]=activity.pos ;break;}
		case 291: if( activity.key[84]!=84){lt= "\u091E\u0948"; activity.key[84]=84; activity.position[83]=activity.pos ;break;}

		
		case 292: if( activity.key[88]!=88){lt= "\u091F\u0947"; activity.key[88]=88; activity.position[87]=activity.pos ;break;}
		case 293: if( activity.key[89]!=89){lt= "\u091F\u0948"; activity.key[89]=89; activity.position[88]=activity.pos ;break;}
		
		case 294: if( activity.key[93]!=93){lt= "\u0920\u0947"; activity.key[93]=93; activity.position[92]=activity.pos ;break;}
		case 295: if( activity.key[94]!=94){lt= "\u0920\u0948"; activity.key[94]=94; activity.position[93]=activity.pos ;break;}
		
		case 296: if( activity.key[98]!=98){lt= "\u0921\u0947"; activity.key[98]=98; activity.position[97]=activity.pos ;break;}
		case 297: if( activity.key[99]!=99){lt= "\u0921\u0948"; activity.key[99]=99; activity.position[98]=activity.pos ;break;}

		case 298: if( activity.key[103]!=103){lt= "\u0922\u0947"; activity.key[103]=103; activity.position[102]=activity.pos ;break;}
		case 299: if( activity.key[104]!=104){lt= "\u0922\u0948"; activity.key[104]=104; activity.position[103]=activity.pos ;break;}

		case 300: if( activity.key[108]!=108){lt= "\u0923\u0947"; activity.key[108]=108; activity.position[107]=activity.pos ;break;}
		case 301: if( activity.key[109]!=109){lt= "\u0923\u0948"; activity.key[109]=109; activity.position[108]=activity.pos ;break;}

		
		case 302: if( activity.key[113]!=113){lt= "\u0924\u0947"; activity.key[113]=113; activity.position[112]=activity.pos ;break;}
		case 303: if( activity.key[114]!=114){lt= "\u0924\u0948"; activity.key[114]=114; activity.position[113]=activity.pos ;break;}

		case 304: if( activity.key[118]!=118){lt= "\u0925\u0947"; activity.key[118]=118; activity.position[117]=activity.pos ;break;}
		case 305: if( activity.key[119]!=119){lt= "\u0925\u0948"; activity.key[119]=119; activity.position[118]=activity.pos ;break;}

		case 306: if( activity.key[123]!=123){lt= "\u0926\u0947"; activity.key[123]=123; activity.position[122]=activity.pos ;break;}
		case 307: if( activity.key[124]!=124){lt= "\u0926\u0948"; activity.key[124]=124; activity.position[123]=activity.pos ;break;}

		case 308: if( activity.key[128]!=128){lt= "\u0927\u0947"; activity.key[128]=128; activity.position[127]=activity.pos ;break;}
		case 309: if( activity.key[129]!=129){lt= "\u0927\u0948"; activity.key[129]=129; activity.position[128]=activity.pos ;break;}

		case 310: if( activity.key[133]!=133){lt= "\u0928\u0947"; activity.key[133]=133; activity.position[132]=activity.pos ;break;}
		case 311: if( activity.key[134]!=134){lt= "\u0928\u0948"; activity.key[134]=134; activity.position[133]=activity.pos ;break;}

		
		case 312: if( activity.key[138]!=138){lt= "\u092A\u0947"; activity.key[138]=138; activity.position[137]=activity.pos ;break;}
		case 313: if( activity.key[139]!=139){lt= "\u092A\u0948"; activity.key[139]=139; activity.position[138]=activity.pos ;break;}

		case 314: if( activity.key[143]!=143){lt= "\u092B\u0947"; activity.key[143]=143; activity.position[142]=activity.pos ;break;}
		case 315: if( activity.key[144]!=144){lt= "\u092B\u0948"; activity.key[144]=144; activity.position[143]=activity.pos ;break;}

		case 316: if( activity.key[148]!=148){lt= "\u092C\u0947"; activity.key[148]=148; activity.position[147]=activity.pos ;break;}
		case 317: if( activity.key[149]!=149){lt= "\u092C\u0948"; activity.key[149]=149; activity.position[148]=activity.pos ;break;}

		case 318: if( activity.key[153]!=153){lt= "\u092D\u0947"; activity.key[153]=153; activity.position[152]=activity.pos ;break;}
		case 319: if( activity.key[154]!=154){lt= "\u092D\u0948"; activity.key[154]=154; activity.position[153]=activity.pos ;break;}

		case 320: if( activity.key[158]!=158){lt= "\u092E\u0947"; activity.key[158]=158; activity.position[157]=activity.pos ;break;}
		case 321: if( activity.key[159]!=159){lt= "\u092E\u0948"; activity.key[159]=159; activity.position[158]=activity.pos ;break;}

		
		case 322: if( activity.key[163]!=163){lt= "\u092F\u0947"; activity.key[163]=163; activity.position[162]=activity.pos ;break;}
		case 323: if( activity.key[164]!=164){lt= "\u092F\u0948"; activity.key[164]=164; activity.position[163]=activity.pos ;break;}
		
		case 324: if( activity.key[168]!=168){lt= "\u0930\u0947"; activity.key[168]=168; activity.position[167]=activity.pos ;break;}
		case 325: if( activity.key[169]!=169){lt= "\u0930\u0948"; activity.key[169]=169; activity.position[168]=activity.pos ;break;}

		case 326: if( activity.key[173]!=173){lt= "\u0932\u0947"; activity.key[173]=173; activity.position[172]=activity.pos ;break;}
		case 327: if( activity.key[174]!=174){lt= "\u0932\u0948"; activity.key[174]=174; activity.position[173]=activity.pos ;break;}

		case 328: if( activity.key[178]!=178){lt= "\u0935\u0947"; activity.key[178]=178; activity.position[177]=activity.pos ;break;}
		case 329: if( activity.key[179]!=179){lt= "\u0935\u0948"; activity.key[179]=179; activity.position[178]=activity.pos ;break;}

		case 330: if( activity.key[183]!=183){lt= "\u0936\u0947"; activity.key[183]=183; activity.position[182]=activity.pos ;break;}
		case 331: if( activity.key[184]!=184){lt= "\u0936\u0948"; activity.key[184]=184; activity.position[183]=activity.pos ;break;}

		case 332: if( activity.key[188]!=188){lt= "\u0937\u0947"; activity.key[188]=188; activity.position[187]=activity.pos ;break;}
		case 333: if( activity.key[189]!=189){lt= "\u0937\u0948"; activity.key[189]=189; activity.position[188]=activity.pos ;break;}

		case 334: if( activity.key[193]!=193){lt= "\u0938\u0947"; activity.key[193]=193; activity.position[192]=activity.pos ;break;}
		case 335: if( activity.key[194]!=194){lt= "\u0938\u0948"; activity.key[194]=194; activity.position[193]=activity.pos ;break;}

		case 336: if( activity.key[198]!=198){lt= "\u0939\u0947"; activity.key[198]=198; activity.position[197]=activity.pos ;break;}
		case 337: if( activity.key[199]!=199){lt= "\u0939\u0948"; activity.key[199]=199; activity.position[198]=activity.pos ;break;}

		case 338: if( activity.key[203]!=203){lt= "\u0933\u0947"; activity.key[203]=203; activity.position[202]=activity.pos ;break;}
		case 339: if( activity.key[204]!=204){lt= "\u0933\u0948"; activity.key[204]=204; activity.position[203]=activity.pos ;break;}

		
		
	/*---------------------------------------------------------------------------------------------------------------------------------------*/	
		
		
		
		case 340: if( activity.key[205]!=205){lt= "\u0915\u094D"; activity.key[205]=205; activity.position[204]=activity.pos ;break;}//halant
		case 341: if( activity.key[210]!=210){lt= "\u0916\u094D"; activity.key[210]=210; activity.position[209]=activity.pos ;break;}
		case 342: if( activity.key[215]!=215){lt= "\u0917\u094D"; activity.key[215]=215; activity.position[214]=activity.pos ;break;}
		case 343: if( activity.key[220]!=220){lt= "\u0918\u094D"; activity.key[220]=220; activity.position[219]=activity.pos ;break;}
		case 344: if( activity.key[225]!=225){lt= "\u0919\u094D"; activity.key[225]=225; activity.position[224]=activity.pos ;break;}
		case 345: if( activity.key[230]!=230){lt= "\u091A\u094D"; activity.key[230]=230; activity.position[229]=activity.pos ;break;}
		case 346: if( activity.key[235]!=235){lt= "\u091B\u094D"; activity.key[235]=235; activity.position[234]=activity.pos ;break;}
		case 347: if( activity.key[240]!=240){lt= "\u091C\u094D"; activity.key[240]=240; activity.position[239]=activity.pos ;break;}
		case 348: if( activity.key[245]!=245){lt= "\u091D\u094D"; activity.key[245]=245; activity.position[244]=activity.pos ;break;}
		case 349: if( activity.key[250]!=250){lt= "\u091E\u094D"; activity.key[250]=250; activity.position[249]=activity.pos ;break;}
		case 350: if( activity.key[255]!=255){lt= "\u091F\u094D"; activity.key[255]=255; activity.position[254]=activity.pos ;break;}
		case 351: if( activity.key[260]!=260){lt= "\u0920\u094D"; activity.key[260]=260; activity.position[259]=activity.pos ;break;}
		case 352: if( activity.key[265]!=265){lt= "\u0921\u094D"; activity.key[265]=265; activity.position[264]=activity.pos ;break;}
		case 353: if( activity.key[270]!=270){lt= "\u0922\u094D"; activity.key[270]=270; activity.position[269]=activity.pos ;break;}
		case 354: if( activity.key[275]!=275){lt= "\u0923\u094D"; activity.key[275]=275; activity.position[274]=activity.pos ;break;}
		case 355: if( activity.key[280]!=280){lt= "\u0924\u094D"; activity.key[280]=280; activity.position[279]=activity.pos ;break;}
		case 356: if( activity.key[285]!=285){lt= "\u0925\u094D"; activity.key[285]=285; activity.position[284]=activity.pos ;break;}
		case 357: if( activity.key[290]!=290){lt= "\u0926\u094D"; activity.key[290]=290; activity.position[289]=activity.pos ;break;}
		case 358: if( activity.key[295]!=295){lt= "\u0927\u094D"; activity.key[295]=295; activity.position[294]=activity.pos ;break;}
		case 359: if( activity.key[300]!=300){lt= "\u0928\u094D"; activity.key[300]=300; activity.position[299]=activity.pos ;break;}
		case 360: if( activity.key[305]!=305){lt= "\u092A\u094D"; activity.key[305]=305; activity.position[304]=activity.pos ;break;}
		case 361: if( activity.key[310]!=310){lt= "\u092B\u094D"; activity.key[310]=310; activity.position[309]=activity.pos ;break;}
		case 362: if( activity.key[315]!=315){lt= "\u092C\u094D"; activity.key[315]=315; activity.position[314]=activity.pos ;break;}
		case 363: if( activity.key[320]!=320){lt= "\u092D\u094D"; activity.key[320]=320; activity.position[319]=activity.pos ;break;}
		case 364: if( activity.key[325]!=325){lt= "\u092E\u094D"; activity.key[325]=325; activity.position[324]=activity.pos ;break;}
		case 365: if( activity.key[330]!=330){lt= "\u092F\u094D"; activity.key[330]=330; activity.position[329]=activity.pos ;break;}
		case 366: if( activity.key[335]!=335){lt= "\u0930\u094D"; activity.key[335]=335; activity.position[334]=activity.pos ;break;}
		case 367: if( activity.key[340]!=340){lt= "\u0932\u094D"; activity.key[340]=340; activity.position[339]=activity.pos ;break;}
		case 368: if( activity.key[345]!=345){lt= "\u0935\u094D"; activity.key[345]=345; activity.position[344]=activity.pos ;break;}	
		case 369: if( activity.key[350]!=350){lt= "\u0936\u094D"; activity.key[350]=350; activity.position[349]=activity.pos ;break;}
		case 370: if( activity.key[355]!=355){lt= "\u0937\u094D"; activity.key[355]=355; activity.position[354]=activity.pos ;break;}
		case 371: if( activity.key[360]!=360){lt= "\u0938\u094D"; activity.key[360]=360; activity.position[359]=activity.pos ;break;}	
		case 372: if( activity.key[365]!=365){lt= "\u0939\u094D"; activity.key[365]=365; activity.position[364]=activity.pos ;break;}
		case 373: if( activity.key[370]!=370){lt= "\u0933\u094D"; activity.key[370]=370; activity.position[369]=activity.pos ;break;}
		}
	
	
	
	 
	
	return lt;
}
	
	
	
}